﻿


using System;
using System.Text;
using System.Collections;
using System.Xml;
using System.Data;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Resources;
using System.Reflection;
using System.Globalization;
using System.Threading;

using Telerik.WebControls;
using UFSoft.UBF.UI.WebControls;
using UFSoft.UBF.UI.WebControls.InterActionComponenet;
using UFSoft.UBF.Util.Log;
using UFSoft.UBF.Util.Context;

//using MagicAjax.UI.Controls;
using UFSoft.UBF.Report.UI.ReportView.Web;
using UFSoft.UBF.UI.WebControlAdapter;
using UFSoft.UBF.UI.FormProcess;
using UFSoft.UBF.UI.IView;
using UFSoft.UBF.UI.Engine;
using UFSoft.UBF.UI.Engine.Builder;
using UFSoft.UBF.UI.Engine.Authorization;
using UFSoft.UBF.UI.MD.Runtime;
using UFSoft.UBF.UI.ActionProcess;
using UFSoft.UBF.UI.ControlModel;
using UFSoft.UBF.UI.Controls;
using UFSoft.UBF.UI.WebControls.Association;
using UFSoft.UBF.UI.WebControls.ClientCallBack;
using System.Web.UI;
using UFSoft.UBF.UI.UIFormPersonalization;
using System.Collections.Specialized;


/***********************************************************************************************
 * Form ID:228323ae-6aac-4635-9e7e-82b3369dfc41 
 * Form Name:OpenForm
 * UIFactory Auto Generator
 ***********************************************************************************************/
namespace ufida.u9.ait.openui
{
	[FormRegister("ufida.u9.ait.openui","ufida.u9.ait.openui.OpenFormWebPart", "ufida.u9.ait.openui.WebPart", "228323ae-6aac-4635-9e7e-82b3369dfc41","WebPart", "True", 992, 504)] 
	///insert into aspnet_Parts (SysVersion, Path, ClassName, [Assembly], FormId) values (0, 'ufida.u9.ait.openui', 'ufida.u9.ait.openui.OpenFormWebPart', 'ufida.u9.ait.openui.WebPart', '228323ae-6aac-4635-9e7e-82b3369dfc41')
	///<siteMapNode url="~/erp/simple.aspx?lnk=228323ae-6aac-4635-9e7e-82b3369dfc41" title="OpenForm"/>
    public partial class OpenFormWebPart : UFSoft.UBF.UI.FormProcess.BaseWebForm
    {
		#region Page Controller/Code Behind
        private static readonly ILogger logger = LoggerManager.GetLogger(typeof(OpenFormWebPart));
        private string assemblyName = System.Reflection.Assembly.GetExecutingAssembly().FullName;
        //private string displayNamePostfix = "displayName";

		#region 强类型化基类属性.
		public new openuiAction Action
		{
			get { return (openuiAction)base.Action; }
			set { base.Action = value; }
		}
		openuiModel _uimodel=null;
		public new openuiModel Model
		{
			get 
			{
			     if(_uimodel == null){
			          _uimodel = new openuiModel();
			     }
			     return _uimodel; 
			}
			set { _uimodel = value; }
		}
        protected override IUIModel UIModel{
            get{
                return this.Model;
            }
            set{
                this.Model = value as openuiModel;
            }
        }
		#endregion 
		public FormAdjust adjust;
        #region variable declaration
        IUFToolbar Toolbar2;
        IUFButton BtnSave;
        IUFButton BtnCancel;
        IUFButton BtnAdd;
        IUFButton BtnDelete;
        IUFSeparator Separator3;
        IUFButton BtnCopy;
        IUFSeparator Separator0;
        IUFButton BtnFind;
        IUFButton BtnList;
        IUFSeparator Separator7;
        IUFButton BtnFirstPage;
        IUFButton BtnPrevPage;
        IUFButton BtnNextPage;
        IUFButton BtnLastPage;
        IUFSeparator Separator1;
        IUFButton BtnSubmit;
        IUFButton BtnApprove;
        IUFButton BtnUndoApprove;
        IUFSeparator Separator4;
        IUFButton BtnAttachment;
        IUFButton BtnFlow;
        IUFSeparator Separator5;
        IUFButton BtnOutput;
        IUFButton BtnPrint;
        IUFSeparator Separator6;
        IUFCard Card0;
        IUFDropDownButton DDBtnOperation;
        IUFDropDownButton DDBtnActivity;
        IUFDropDownButton DDBtnQuery;
        IUFDropDownButton DDBtnTaskLink;
        IUFButton BtnOk;
        IUFButton BtnClose;
        IUFCard Card3;
        IUFTabControl TabControl0;
        IUFTabPage TabPage0;
        IUFLabel lblCode260;
        IUFFldTextBox Code260;
        IUFLabel lblName164;
        IUFFldTextBox Name164;
        IUFLabel lblRetCode161;
        IUFFldNumberControl RetCode161;
        IUFLabel lblRetMsg167;
        IUFFldTextBox RetMsg167;
        IUFLabel lblUrl194;
        IUFFldTextBox Url194;
        IUFLabel lblCreatedOn143;
        IUFFldDatePicker CreatedOn143;
        IUFLabel lblCreatedBy134;
        IUFFldTextBox CreatedBy134;
        IUFTabPage TabPage1;
        IUFLabel lblInParm212;
        IUFFldTextBox InParm212;
        IUFLabel lblOutParm389;
        IUFFldTextBox OutParm389;
		UpdatePanel updatePanel;
		HiddenField wpFindID;
		IUFContainer topLevelPanel;     
        IUFSeparator SeparatorInFavorites;
        IUFButton BtnDefaultValues;
        #endregion
        
        #region constructor
        public OpenFormWebPart()
        {
            FormID = "228323ae-6aac-4635-9e7e-82b3369dfc41";
            IsAutoSize = bool.Parse("True");
            NewIsAutoSize = bool.Parse("True");
        }
        #endregion


	
            
	//获取档案版型结果: 

        #region eventBind and databind
        private void EventBind()
        {
			//事件绑定模板
				//Button控件事件
			this.BtnFind.Click += new EventHandler(BtnFind_Click);		
						
				//Button控件事件
			this.BtnList.Click += new EventHandler(BtnList_Click);		
						
				//Button控件事件
			this.BtnFirstPage.Click += new EventHandler(BtnFirstPage_Click);		
						
				//Button控件事件
			this.BtnPrevPage.Click += new EventHandler(BtnPrevPage_Click);		
						
				//Button控件事件
			this.BtnNextPage.Click += new EventHandler(BtnNextPage_Click);		
						
				//Button控件事件
			this.BtnLastPage.Click += new EventHandler(BtnLastPage_Click);		
						

		
            AfterEventBind();
        }
        #endregion            
        
		#region override method
		protected override void OnLoad(EventArgs e)
		{
			base.OnLoad2(e);
		}
		protected override void OnLoadDataDo(EventArgs e)
		{
		    adjust.ProcessAdjustBeforeOnLoad(this);
			if (UIEngineHelper.IsDataBind(PageStatus, this))
			{
				if(this.Model==null){				        
					this.Model = new openuiModel();
				}
				OnLoadConsumer(new InParameterModel[]{},new InParameterModel[]{});
				OnLoadData(this);
				this.IsDataBinding = true ; //加载完数据要绑定一次.目前加这.
			}
			else
			{
				//去除.已经移入到OnInit()中.
				//this.Model = (openuiModel)this.CurrentState[this.TaskId.ToString()];
			}
			adjust.ProcessAdjustAfterOnLoadData(this);
		            AfterOnLoad();
            
            adjust.ProcessAdjustAfterOnLoad(this);
		}
		protected override void OnPreRender(EventArgs e)
		{
			base.OnPreRender2(e);
		}
        protected override void OnPreRenderDo(EventArgs e)
        {
            adjust.ProcessAdjustBeforeOnPreRender(this);
			base.OnPreRender(e);
			this.CurrentState[this.TaskId.ToString()] = this.Model;
			RegisterClearWebPartPadding();
            UFIDA.U9.UI.PDHelper.FormAuthorityHelper.SetWebPartAuthorization(this);
            
			if (IsDataBinding) //2006-9-7 可由开发人员控制
			{
				BeforeUIModelBinding();
				//BtnFind对应隐藏域的数据传递。:True
				UFIDA.U9.UI.PDHelper.CommonReferenceHelper.BindingBtnFindParam(this);
								if(!Page.IsPostBack)
				{
					EnumTypeBinding.BindEnumControls(this);
				}
				UFIDA.U9.UI.Commands.CommandHelper.BindFlexData(this);
				adjust.ProcessAdjustBeforeDataBinding(this);
				if (this.IsOnlyDataBinding)
				{
					this.DataBinding();
				}
				adjust.ProcessAdjustAfterDataBinding(this);

				AfterUIModelBinding();
			}
			adjust.ProcessAdjustAfterOnPreRender(this);
        }
		protected override void OnInit(EventArgs e)
		{
			base.OnInit2(e);
		}
		protected override void OnInitDo(EventArgs e)
		{			 
			this.Page.InitComplete += new EventHandler(Page_InitComplete);
			WebPartBuilder.InitWebPart(this);
            this.Action = new openuiAction(this);
            adjust = new FormAdjust();
		    CreateFormChildControls();
		}
        void Page_InitComplete(object sender, EventArgs e)
        {

            adjust.ProcessInit(this);
        }
        #endregion

      
        
        #endregion

	
		/// <summary>
        /// WebPart View
        /// </summary>
        #region view Create Contorls
        private void CreateFormChildControls()
        {
            IUFContainer _panel = UIControlBuilder.BuildTopLevelContainer(this,"OpenForm",true,992,504);
            CommonBuilder.ContainerGridLayoutPropBuilder(_panel, 1, 3, 0, 10, 0, 0, 0, 5);
			InitViewBindingContainer(this, _panel,  null, "", "", null, 1, "");
			UIControlBuilder.BuildContainerGridLayout(_panel, 10,new GridColumnDef[]{new GridColumnDef(992,bool.Parse("False"),"Title"),},new GridRowDef[]{new GridRowDef(28,bool.Parse("True")),new GridRowDef(421,bool.Parse("False")),new GridRowDef(25,bool.Parse("True")),});
            //???还有用么?
            topLevelPanel = _panel;    
            
            UIControlBuilder.BuildCommonControls(this,ref updatePanel,ref wpFindID);
            





	
			_BuilderControl_Toolbar2(_panel);

		
			UIControlBuilder.BuilderUFControl(this.Toolbar2, "1");		


	
			_BuilderControl_Card0(_panel);

		
			UIControlBuilder.BuilderUFControl(this.Card0, "3");		


	
			_BuilderControl_Card3(_panel);

		
			UIControlBuilder.BuilderUFControl(this.Card3, "2");		



			
     
			
			
            EventBind();
            AfterCreateChildControls();
            
        }        







				        
        private void _BuilderControl_Toolbar2(IUFContainer container)
        {
            IUFToolbar _Toolbar = UIControlBuilder.BuilderToolBarControl(container,"Toolbar2",true, true, "1",992, 28, 0, 0, 1, 1,"100");
            this.Toolbar2 = _Toolbar;
            
            ///foreach Toolbar下的所有控件，增加到此容器
                            this.BtnSave = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnSave", "False", "True", 35, 28,"1", "",true,false,"8288c5a3-3b19-48d3-b139-f7018d2782ee","8288c5a3-3b19-48d3-b139-f7018d2782ee","5ec7651f-ccdd-4662-9d49-5ff8da05e0c6");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnSave);
            this.BtnSave.UIModel = this.Model.ElementID;
            this.BtnSave.Action = "";
	                            this.BtnCancel = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnCancel", "False", "True", 35, 28,"2", "",true,false,"f35cb480-9e8f-4689-aaac-3e9fc9a0c65e","f35cb480-9e8f-4689-aaac-3e9fc9a0c65e","b8dfe57c-4fe2-47f0-a2e3-ec7977278335");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnCancel);
            this.BtnCancel.UIModel = this.Model.ElementID;
            this.BtnCancel.Action = "";
	                            this.BtnAdd = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnAdd", "False", "True", 35, 28,"3", "",true,false,"19478b02-d2a9-4d7e-b7af-00070c61ff2d","19478b02-d2a9-4d7e-b7af-00070c61ff2d","7a025ded-1f4c-4f7d-bf1a-df37644be5ee");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnAdd);
            this.BtnAdd.UIModel = this.Model.ElementID;
            this.BtnAdd.Action = "";
	                            this.BtnDelete = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnDelete", "False", "True", 35, 28,"4", "",true,false,"0467218f-229b-4954-b2d4-3c5976467f76","0467218f-229b-4954-b2d4-3c5976467f76","f0cca684-2fea-483b-ae73-334be5df37af");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnDelete);
            this.BtnDelete.UIModel = this.Model.ElementID;
            this.BtnDelete.Action = "";
	                            _Toolbar.Controls.Add(new UFWebToolbarSeparatorAdapter());
			                            this.BtnCopy = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnCopy", "False", "True", 35, 28,"6", "",true,false,"be9f8d20-e484-464b-9818-a2c1b599b967","be9f8d20-e484-464b-9818-a2c1b599b967","8b1e90f7-fb22-42e8-a8c8-929278502d3c");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnCopy);
            this.BtnCopy.UIModel = this.Model.ElementID;
            this.BtnCopy.Action = "";
	                            _Toolbar.Controls.Add(new UFWebToolbarSeparatorAdapter());
			                            this.BtnFind = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnFind", "True", "True", 35, 28,"12", "F",true,false,"27621430-7bc7-4c0e-979e-f0108439d13e","27621430-7bc7-4c0e-979e-f0108439d13e","753e8d61-26df-4d0e-b1b1-1b29f8d28f7b");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnFind);
            this.BtnFind.UIModel = this.Model.ElementID;
            this.BtnFind.Action = "FindClick";
	                            this.BtnList = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnList", "True", "True", 35, 28,"13", "L",true,false,"c639596b-5a8c-4fc1-88bb-a3d670cda992","c639596b-5a8c-4fc1-88bb-a3d670cda992","8bec0e25-0068-4171-a6e0-dae99ae51a82");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnList);
            this.BtnList.UIModel = this.Model.ElementID;
            this.BtnList.Action = "ListClick";
	                            _Toolbar.Controls.Add(new UFWebToolbarSeparatorAdapter());
			                            this.BtnFirstPage = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnFirstPage", "True", "True", 35, 28,"15", "[",true,false,"f229e163-fcd1-4f6a-a645-df86c0efd8ec","f229e163-fcd1-4f6a-a645-df86c0efd8ec","6282a9b4-f2de-451c-af79-d4b87064c18c");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnFirstPage);
            this.BtnFirstPage.UIModel = this.Model.ElementID;
            this.BtnFirstPage.Action = "FirstPage";
	                            this.BtnPrevPage = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnPrevPage", "True", "True", 35, 28,"16", "",true,false,"5ed368d8-7616-4696-b671-3f1c895f3b43","5ed368d8-7616-4696-b671-3f1c895f3b43","3c3e3335-8b72-4817-bbf4-33d275a042b3");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnPrevPage);
            this.BtnPrevPage.UIModel = this.Model.ElementID;
            this.BtnPrevPage.Action = "";
	                            this.BtnNextPage = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnNextPage", "True", "True", 35, 28,"17", "",true,false,"36afec41-957c-493a-97a4-eddb136af5b4","36afec41-957c-493a-97a4-eddb136af5b4","40cfb804-e4ee-41f3-9a80-3876cef6178a");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnNextPage);
            this.BtnNextPage.UIModel = this.Model.ElementID;
            this.BtnNextPage.Action = "";
	                            this.BtnLastPage = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnLastPage", "True", "True", 35, 28,"18", "",true,false,"dc4a37d1-35de-4016-81dd-582aef3cdeb0","dc4a37d1-35de-4016-81dd-582aef3cdeb0","8716cac0-41ba-4074-bbfe-e882646bd0db");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnLastPage);
            this.BtnLastPage.UIModel = this.Model.ElementID;
            this.BtnLastPage.Action = "";
	                            _Toolbar.Controls.Add(new UFWebToolbarSeparatorAdapter());
			                            this.BtnSubmit = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnSubmit", "False", "True", 35, 28,"8", "",true,false,"c42c0f21-2fd7-49b2-ac54-62f811747b18","c42c0f21-2fd7-49b2-ac54-62f811747b18","097d195a-6281-47a1-86b4-995d1aac5a04");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnSubmit);
            this.BtnSubmit.UIModel = this.Model.ElementID;
            this.BtnSubmit.Action = "";
	                            this.BtnApprove = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnApprove", "False", "True", 35, 28,"9", "",true,false,"eb678a04-c7e1-44f1-b175-8f90f9903862","eb678a04-c7e1-44f1-b175-8f90f9903862","2bdab5a9-fdb6-4f10-8584-b2ff1120d589");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnApprove);
            this.BtnApprove.UIModel = this.Model.ElementID;
            this.BtnApprove.Action = "";
	                            this.BtnUndoApprove = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnUndoApprove", "False", "True", 35, 28,"10", "",true,false,"ae796775-bce3-4aed-89a9-20eaa4648a67","ae796775-bce3-4aed-89a9-20eaa4648a67","e80dd428-bc36-498e-8ca1-c7e73c2ab579");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnUndoApprove);
            this.BtnUndoApprove.UIModel = this.Model.ElementID;
            this.BtnUndoApprove.Action = "";
	                            _Toolbar.Controls.Add(new UFWebToolbarSeparatorAdapter());
			                            this.BtnAttachment = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnAttachment", "False", "True", 35, 28,"20", "",true,false,"92ccef79-ad54-438c-a16e-20a4fd407b97","92ccef79-ad54-438c-a16e-20a4fd407b97","f7bf66a5-42fd-48a4-8f60-ee058706c37a");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnAttachment);
            this.BtnAttachment.UIModel = this.Model.ElementID;
            this.BtnAttachment.Action = "";
	                            this.BtnFlow = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnFlow", "False", "True", 35, 28,"21", "",true,false,"e222698c-ae3c-470a-8053-1b69905c510a","e222698c-ae3c-470a-8053-1b69905c510a","e6d96e85-3cba-4a19-bfbb-1a6d59e4152b");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnFlow);
            this.BtnFlow.UIModel = this.Model.ElementID;
            this.BtnFlow.Action = "";
	                            _Toolbar.Controls.Add(new UFWebToolbarSeparatorAdapter());
			                            this.BtnOutput = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnOutput", "False", "True", 35, 28,"23", "",true,false,"688fd549-5a92-49cc-8072-6d5377f6409a","688fd549-5a92-49cc-8072-6d5377f6409a","17ceac6d-e2d8-4ceb-a33a-f64e4cb3b3b8");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnOutput);
            this.BtnOutput.UIModel = this.Model.ElementID;
            this.BtnOutput.Action = "";
	                            this.BtnPrint = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnPrint", "False", "True", 35, 28,"24", "",true,false,"27b5c615-cde5-458c-be74-833317249568","27b5c615-cde5-458c-be74-833317249568","aebe0343-1f58-41ba-ab69-938c2e3c1b7d");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnPrint);
            this.BtnPrint.UIModel = this.Model.ElementID;
            this.BtnPrint.Action = "";
	                            _Toolbar.Controls.Add(new UFWebToolbarSeparatorAdapter());
			
            
            ((UFWebToolbarAdapter)_Toolbar).RemoveControls();
        }



	                   
        private IUFCard _BuilderControl_Card0(IUFContainer container)
        {
            IUFCard _UFCard = UIControlBuilder.BuildCard(container,"Card0",false,"FunctionBar", true, true, "3","","0e888bb4-e7ea-48f9-ba59-b6280e8a4c9b");
			CommonBuilder.GridLayoutPropBuilder(container, _UFCard, 992, 25, 0, 2, 1, 1, "100");
            CommonBuilder.ContainerGridLayoutPropBuilder(_UFCard, 22, 1, 0, 5, 10, 3, 10, 2);
			InitViewBindingContainer(this, _UFCard,  null, "", "", null, 1, "");
			UIControlBuilder.BuildContainerGridLayout(_UFCard, 5,new GridColumnDef[]{new GridColumnDef(80,bool.Parse("True"),"Spacing"),new GridColumnDef(10,bool.Parse("True"),"Spacing"),new GridColumnDef(80,bool.Parse("True"),"Spacing"),new GridColumnDef(10,bool.Parse("True"),"Spacing"),new GridColumnDef(80,bool.Parse("True"),"Spacing"),new GridColumnDef(10,bool.Parse("True"),"Spacing"),new GridColumnDef(80,bool.Parse("True"),"Spacing"),new GridColumnDef(10,bool.Parse("True"),"Spacing"),new GridColumnDef(80,bool.Parse("True"),"Spacing"),new GridColumnDef(10,bool.Parse("True"),"Spacing"),new GridColumnDef(80,bool.Parse("True"),"Spacing"),new GridColumnDef(10,bool.Parse("True"),"Spacing"),new GridColumnDef(80,bool.Parse("True"),"Spacing"),new GridColumnDef(10,bool.Parse("True"),"Spacing"),new GridColumnDef(80,bool.Parse("True"),"Spacing"),new GridColumnDef(10,bool.Parse("True"),"Spacing"),new GridColumnDef(71,bool.Parse("True"),"Value"),new GridColumnDef(10,bool.Parse("True"),"Spacing"),new GridColumnDef(80,bool.Parse("True"),"Spacing"),new GridColumnDef(10,bool.Parse("True"),"Spacing"),new GridColumnDef(80,bool.Parse("True"),"Spacing"),new GridColumnDef(1,bool.Parse("False"),"Spacing"),},new GridRowDef[]{new GridRowDef(20,bool.Parse("True")),});
            this.Card0 = _UFCard;

            ///foreach UFCard下的所有控件，增加到此容器





	
			_BuilderControl_DDBtnOperation(_UFCard);

		
			UIControlBuilder.BuilderUFControl(this.DDBtnOperation, "1");		


	
			_BuilderControl_DDBtnActivity(_UFCard);

		
			UIControlBuilder.BuilderUFControl(this.DDBtnActivity, "2");		


	
			_BuilderControl_DDBtnQuery(_UFCard);

		
			UIControlBuilder.BuilderUFControl(this.DDBtnQuery, "3");		


	
			_BuilderControl_DDBtnTaskLink(_UFCard);

		
			UIControlBuilder.BuilderUFControl(this.DDBtnTaskLink, "8");		


				this.BtnOk = UIControlBuilder.BuilderUFButton(_UFCard, true, "BtnOk", true, false, 80, 20, 0, 0, 1, 1, "100","", this.Model.ElementID,"",false,"626ebf9b-f65a-4dd5-8f32-96f84919878c","626ebf9b-f65a-4dd5-8f32-96f84919878c","51277d31-2eda-4778-9b1d-ed61cf0214db");
	

		
			UIControlBuilder.BuilderUFControl(this.BtnOk, "9");		


				this.BtnClose = UIControlBuilder.BuilderUFButton(_UFCard, true, "BtnClose", true, false, 80, 20, 0, 0, 1, 1, "100","", this.Model.ElementID,"",false,"020a5365-8f12-4970-b8df-17ce3ae60a68","020a5365-8f12-4970-b8df-17ce3ae60a68","1a26b9f8-c0e5-4e9c-a782-3a1a5b16fd82");
	

		
			UIControlBuilder.BuilderUFControl(this.BtnClose, "10");		



						

            
            container.Controls.Add(_UFCard);
            return _UFCard;
        }

				       
        private void _BuilderControl_DDBtnOperation(IUFContainer container)
        {
            IUFDropDownButton _dropDownButton = UIControlBuilder.BuildDropDownButton(container,"DDBtnOperation",false, true,"1"
            , 80, 20, 0, 0, 1, 1, "100","c4e31736-3819-479a-9f0a-2a306ba44bec","74cf1395-e06b-4110-ade8-5b45331606e8");
            this.DDBtnOperation = _dropDownButton;
            
            ///foreach DropDownButton下的所有控件，增加到此容器
        }

				       
        private void _BuilderControl_DDBtnActivity(IUFContainer container)
        {
            IUFDropDownButton _dropDownButton = UIControlBuilder.BuildDropDownButton(container,"DDBtnActivity",false, true,"2"
            , 80, 20, 0, 0, 1, 1, "100","d24eab78-82b5-4f55-aa4a-f1c85a2c0489","2d5f6049-0007-43e4-80c7-5b4539abb6a2");
            this.DDBtnActivity = _dropDownButton;
            
            ///foreach DropDownButton下的所有控件，增加到此容器
        }

				       
        private void _BuilderControl_DDBtnQuery(IUFContainer container)
        {
            IUFDropDownButton _dropDownButton = UIControlBuilder.BuildDropDownButton(container,"DDBtnQuery",false, true,"3"
            , 80, 20, 0, 0, 1, 1, "100","61a151e6-462e-4392-b264-c988ddd844b8","97464bf9-561a-4641-85ee-9f5db54ac6ed");
            this.DDBtnQuery = _dropDownButton;
            
            ///foreach DropDownButton下的所有控件，增加到此容器
        }

				       
        private void _BuilderControl_DDBtnTaskLink(IUFContainer container)
        {
            IUFDropDownButton _dropDownButton = UIControlBuilder.BuildDropDownButton(container,"DDBtnTaskLink",false, true,"8"
            , 80, 20, 0, 0, 1, 1, "100","e9b85406-d7e2-41f5-94da-49a69f06327c","5ec12533-d420-4bf6-a356-02da7403f5c3");
            this.DDBtnTaskLink = _dropDownButton;
            
            ///foreach DropDownButton下的所有控件，增加到此容器
        }

	                   
        private IUFCard _BuilderControl_Card3(IUFContainer container)
        {
            IUFCard _UFCard = UIControlBuilder.BuildCard(container,"Card3",false,"none", true, true, "2","","60e7c7ca-5f14-4a55-a1b5-2b0b5423cef7");
			CommonBuilder.GridLayoutPropBuilder(container, _UFCard, 992, 421, 0, 1, 1, 1, "100");
            CommonBuilder.ContainerGridLayoutPropBuilder(_UFCard, 2, 2, 0, 10, 10, 0, 10, 0);
			InitViewBindingContainer(this, _UFCard,  null, "", "", null, 1, "");
			UIControlBuilder.BuildContainerGridLayout(_UFCard, 10,new GridColumnDef[]{new GridColumnDef(971,bool.Parse("True"),"Value"),new GridColumnDef(1,bool.Parse("False"),"Spacing"),},new GridRowDef[]{new GridRowDef(410,bool.Parse("True")),new GridRowDef(1,bool.Parse("False")),});
            this.Card3 = _UFCard;

            ///foreach UFCard下的所有控件，增加到此容器





	
			_BuilderControl_TabControl0(_UFCard);

		
			UIControlBuilder.BuilderUFControl(this.TabControl0, "1");		



	

            
            container.Controls.Add(_UFCard);
            return _UFCard;
        }

	         private void _BuilderControl_TabControl0(IUFContainer container)
        {
            IUFTabControl _UFTabControl = UIControlBuilder.BuildTabControl(container,"TabControl0",true, true, "1",EventResponseType.Client,971, 421, 0, 0, 1, 2, "100");
            ///foreach UFTabbedPane下的所有控件，增加到此容器
            _UFTabControl.TabPages.Add(_BuilderControl_TabPage0(_UFTabControl));
            _UFTabControl.TabPages.Add(_BuilderControl_TabPage1(_UFTabControl));
            this.TabControl0 = _UFTabControl;
        }

	        private IUFTabPage _BuilderControl_TabPage0(IUFTabControl container)
        {
            IUFTabPage _UFTabPage = UIControlBuilder.BuildTabPageControl(container,"TabPage0",true, true, "1","ad16c26a-0bfe-4b1c-91a5-b0c6bf17491a","e0b056d6-0311-49ec-8940-e478e021c6f0");
            CommonBuilder.ContainerGridLayoutPropBuilder(_UFTabPage, 3, 8, 0, 5, 5, 5, 5, 5);
			InitViewBindingContainer(this, _UFTabPage,  this.Model.AITLog, "AITLog", "", null, 1, "AIT日志");
			UIControlBuilder.BuildContainerGridLayout(_UFTabPage, 5,new GridColumnDef[]{new GridColumnDef(150,bool.Parse("True"),"Title"),new GridColumnDef(5,bool.Parse("True"),"Spacing"),new GridColumnDef(500,bool.Parse("True"),"Value"),},new GridRowDef[]{new GridRowDef(20,bool.Parse("True")),new GridRowDef(20,bool.Parse("True")),new GridRowDef(20,bool.Parse("True")),new GridRowDef(20,bool.Parse("True")),new GridRowDef(20,bool.Parse("True")),new GridRowDef(20,bool.Parse("True")),new GridRowDef(20,bool.Parse("True")),new GridRowDef(20,bool.Parse("True")),});
            ///foreach UFTab下的所有控件，增加到此容器





				this.lblCode260 = UIControlBuilder.BuilderUFLabel(_UFTabPage, "lblCode260", "", "True", "True", "Right", 150, 20, 0, 0, 1, 1, "100","db4405fb-5ae9-4d97-b8ff-45153712ef26","bfada89f-7d96-4ed7-96dc-8e06b378a897");


								

		
			UIControlBuilder.BuilderUFControl(this.lblCode260, "0");		


				this.Code260 = UIControlBuilder.BuilderTextBox(_UFTabPage, "Code260", "True", "True", "True", "False", "Left", 0, 60, 0, 500, 20, 2, 0, 1, 1, "False", "100"
			,"",TextBoxMode.SingleLine,TextAlign.Left, true,true,"lblCode260","","50","db4405fb-5ae9-4d97-b8ff-45153712ef26","3b6a7447-99b2-4296-96c3-f041b00f3bad");
			UIControlBuilder.BuilderUIFieldBindingControl(this, this.Code260, "False", "Code", this.Model.AITLog, this.Model.AITLog.FieldCode, "AITLog");


		
			UIControlBuilder.BuilderUFControl(this.Code260, "1");		
		 

				this.lblName164 = UIControlBuilder.BuilderUFLabel(_UFTabPage, "lblName164", "", "True", "True", "Right", 150, 20, 0, 1, 1, 1, "100","23154d4c-6d9e-4c98-b3c2-c15e13a286e4","1d9dd07d-10b0-479d-a0a4-aa96697fb2c0");


								

		
			UIControlBuilder.BuilderUFControl(this.lblName164, "2");		


				this.Name164 = UIControlBuilder.BuilderTextBox(_UFTabPage, "Name164", "True", "True", "True", "False", "Left", 0, 60, 0, 500, 20, 2, 1, 1, 1, "False", "100"
			,"",TextBoxMode.SingleLine,TextAlign.Left, true,true,"lblName164","","50","23154d4c-6d9e-4c98-b3c2-c15e13a286e4","76ad28f8-395a-4b9c-8277-a12c03dd5558");
			UIControlBuilder.BuilderUIFieldBindingControl(this, this.Name164, "False", "Name", this.Model.AITLog, this.Model.AITLog.FieldName, "AITLog");


		
			UIControlBuilder.BuilderUFControl(this.Name164, "3");		
		 

				this.lblRetCode161 = UIControlBuilder.BuilderUFLabel(_UFTabPage, "lblRetCode161", "", "True", "True", "Right", 150, 20, 0, 2, 1, 1, "100","7959467b-47cc-44be-9bd6-29289f0d291d","06bed74e-a154-4a79-b018-79fd86c6aa27");


								

		
			UIControlBuilder.BuilderUFControl(this.lblRetCode161, "4");		


				this.RetCode161 = UIControlBuilder.BuilderNumberControl(_UFTabPage, "RetCode161", "True", "True", "True", "Left", 2, 60, 0, 500, 20, 2, 2, 1, 1, NumbericType.Numberic, "100",79228162514264337593543950335m, -79228162514264337593543950335m
			,TextAlign.Right,0,true,true,true,"lblRetCode161","10.0","7959467b-47cc-44be-9bd6-29289f0d291d","29cc1b74-e539-46da-b828-3f1e78857a91",null,null,null, null);
			UIControlBuilder.BuilderUIFieldBindingControl(this, this.RetCode161, "False", "RetCode", this.Model.AITLog, this.Model.AITLog.FieldRetCode, "AITLog");
	
		
			UIControlBuilder.BuilderUFControl(this.RetCode161, "5");		
		 

				this.lblRetMsg167 = UIControlBuilder.BuilderUFLabel(_UFTabPage, "lblRetMsg167", "", "True", "True", "Right", 150, 20, 0, 3, 1, 1, "100","4c014add-bfe4-45d5-b3df-6ebb4928fc3e","313ef2df-33f4-4109-a501-59432c3a37cd");


								

		
			UIControlBuilder.BuilderUFControl(this.lblRetMsg167, "6");		


				this.RetMsg167 = UIControlBuilder.BuilderTextBox(_UFTabPage, "RetMsg167", "True", "True", "True", "False", "Left", 0, 60, 0, 500, 20, 2, 3, 1, 1, "False", "100"
			,"",TextBoxMode.SingleLine,TextAlign.Left, true,true,"lblRetMsg167","","5000","4c014add-bfe4-45d5-b3df-6ebb4928fc3e","b3e7b090-dcd8-415b-af50-f3ad1dfcf985");
			UIControlBuilder.BuilderUIFieldBindingControl(this, this.RetMsg167, "False", "RetMsg", this.Model.AITLog, this.Model.AITLog.FieldRetMsg, "AITLog");


		
			UIControlBuilder.BuilderUFControl(this.RetMsg167, "7");		
		 

				this.lblUrl194 = UIControlBuilder.BuilderUFLabel(_UFTabPage, "lblUrl194", "", "True", "True", "Right", 150, 20, 0, 4, 1, 1, "100","684283dc-f362-4d6e-9a55-f8d9c61bf743","ab2e9721-fa19-4797-984b-a617ed866868");


								

		
			UIControlBuilder.BuilderUFControl(this.lblUrl194, "8");		


				this.Url194 = UIControlBuilder.BuilderTextBox(_UFTabPage, "Url194", "True", "True", "True", "False", "Left", 0, 60, 0, 500, 20, 2, 4, 1, 1, "False", "100"
			,"",TextBoxMode.SingleLine,TextAlign.Left, true,true,"lblUrl194","","500","684283dc-f362-4d6e-9a55-f8d9c61bf743","efe61b04-1881-4571-a978-b1fc9df015f5");
			UIControlBuilder.BuilderUIFieldBindingControl(this, this.Url194, "False", "Url", this.Model.AITLog, this.Model.AITLog.FieldUrl, "AITLog");


		
			UIControlBuilder.BuilderUFControl(this.Url194, "9");		
		 

				this.lblCreatedOn143 = UIControlBuilder.BuilderUFLabel(_UFTabPage, "lblCreatedOn143", "", "True", "True", "Right", 150, 20, 0, 5, 1, 1, "100","f561bcbc-a4aa-40e1-97c1-579bea98be72","5f5b04e1-9633-49d9-a11b-abe78b32b411");


								

		
			UIControlBuilder.BuilderUFControl(this.lblCreatedOn143, "10");		


				this.CreatedOn143 = UIControlBuilder.BuilderDatePicker(_UFTabPage, "CreatedOn143", true, true, true, "DateTime","Left", 5, 60, 0, 500, 20, 2, 5, 1, 1, "100",true,true,"lblCreatedOn143","f561bcbc-a4aa-40e1-97c1-579bea98be72","a84782b4-876e-49d5-9f98-1d00f05ec1f5");
			UIControlBuilder.BuilderUIFieldBindingControl(this, this.CreatedOn143, "False", "CreatedOn", this.Model.AITLog, this.Model.AITLog.FieldCreatedOn, "AITLog");


		
			UIControlBuilder.BuilderUFControl(this.CreatedOn143, "11");		
		 

				this.lblCreatedBy134 = UIControlBuilder.BuilderUFLabel(_UFTabPage, "lblCreatedBy134", "", "True", "True", "Right", 150, 20, 0, 6, 1, 1, "100","cb21d26c-8a7a-496a-a668-2f2ea8fa8c63","444131f4-c261-452c-8816-55b7bac7c704");


								

		
			UIControlBuilder.BuilderUFControl(this.lblCreatedBy134, "12");		


				this.CreatedBy134 = UIControlBuilder.BuilderTextBox(_UFTabPage, "CreatedBy134", "True", "True", "True", "False", "Left", 0, 60, 0, 500, 20, 2, 6, 1, 1, "False", "100"
			,"",TextBoxMode.SingleLine,TextAlign.Left, true,true,"lblCreatedBy134","","50","cb21d26c-8a7a-496a-a668-2f2ea8fa8c63","a9123032-a1f1-4c2c-a06a-3664a214bbf1");
			UIControlBuilder.BuilderUIFieldBindingControl(this, this.CreatedBy134, "False", "CreatedBy", this.Model.AITLog, this.Model.AITLog.FieldCreatedBy, "AITLog");


		
			UIControlBuilder.BuilderUFControl(this.CreatedBy134, "13");		
		 


														

            this.TabPage0 = _UFTabPage;
            return _UFTabPage;
        }

	        private IUFTabPage _BuilderControl_TabPage1(IUFTabControl container)
        {
            IUFTabPage _UFTabPage = UIControlBuilder.BuildTabPageControl(container,"TabPage1",true, true, "2","74789068-e3e5-4296-b8f9-e417f08bf370","74789068-e3e5-4296-b8f9-e417f08bf370");
            CommonBuilder.ContainerGridLayoutPropBuilder(_UFTabPage, 3, 13, 0, 5, 5, 5, 5, 5);
			InitViewBindingContainer(this, _UFTabPage,  this.Model.AITLog, "AITLog", "", null, 1, "AIT日志");
			UIControlBuilder.BuildContainerGridLayout(_UFTabPage, 5,new GridColumnDef[]{new GridColumnDef(150,bool.Parse("True"),"Title"),new GridColumnDef(5,bool.Parse("True"),"Spacing"),new GridColumnDef(500,bool.Parse("True"),"Value"),},new GridRowDef[]{new GridRowDef(20,bool.Parse("True")),new GridRowDef(20,bool.Parse("True")),new GridRowDef(20,bool.Parse("True")),new GridRowDef(20,bool.Parse("True")),new GridRowDef(20,bool.Parse("True")),new GridRowDef(20,bool.Parse("True")),new GridRowDef(20,bool.Parse("True")),new GridRowDef(20,bool.Parse("True")),new GridRowDef(20,bool.Parse("True")),new GridRowDef(20,bool.Parse("True")),new GridRowDef(20,bool.Parse("True")),new GridRowDef(20,bool.Parse("True")),new GridRowDef(20,bool.Parse("True")),});
            ///foreach UFTab下的所有控件，增加到此容器





				this.lblInParm212 = UIControlBuilder.BuilderUFLabel(_UFTabPage, "lblInParm212", "", "True", "True", "Right", 150, 20, 0, 0, 1, 1, "100","d4b3b559-a4c2-424a-99b3-1c991763d5c5","6281e3dd-4c1b-4f6b-81ed-71fe337bc434");


								

		
			UIControlBuilder.BuilderUFControl(this.lblInParm212, "0");		


				this.InParm212 = UIControlBuilder.BuilderTextBox(_UFTabPage, "InParm212", "True", "True", "True", "True", "Left", 0, 60, 0, 500, 145, 2, 0, 1, 6, "False", "100"
			,"",TextBoxMode.MultiLine,TextAlign.Left, true,true,"lblInParm212","","5000","d4b3b559-a4c2-424a-99b3-1c991763d5c5","a3fbbe70-451f-45ce-b4a0-3da222ed12a1");
			UIControlBuilder.BuilderUIFieldBindingControl(this, this.InParm212, "False", "InParm", this.Model.AITLog, this.Model.AITLog.FieldInParm, "AITLog");


		
			UIControlBuilder.BuilderUFControl(this.InParm212, "1");		
		 

				this.lblOutParm389 = UIControlBuilder.BuilderUFLabel(_UFTabPage, "lblOutParm389", "", "True", "True", "Right", 150, 20, 0, 6, 1, 1, "100","d36691a8-bad6-483d-a90d-983b13ecb8ab","d4392aaa-dfa3-45ab-aa5e-39ac58f83292");


								

		
			UIControlBuilder.BuilderUFControl(this.lblOutParm389, "2");		


				this.OutParm389 = UIControlBuilder.BuilderTextBox(_UFTabPage, "OutParm389", "True", "True", "True", "True", "Left", 0, 60, 0, 500, 145, 2, 6, 1, 6, "False", "100"
			,"",TextBoxMode.MultiLine,TextAlign.Left, true,true,"lblOutParm389","","5000","d36691a8-bad6-483d-a90d-983b13ecb8ab","2437cb8a-fb48-4c68-a9c3-e362ade8f7a2");
			UIControlBuilder.BuilderUIFieldBindingControl(this, this.OutParm389, "False", "OutParm", this.Model.AITLog, this.Model.AITLog.FieldOutParm, "AITLog");


		
			UIControlBuilder.BuilderUFControl(this.OutParm389, "3");		
		 


				

            this.TabPage1 = _UFTabPage;
            return _UFTabPage;
        }





		#endregion
		

	}
}
